
all: install

build:
	ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk APP_PLATFORM=android-16 APP_ABI=armeabi

install: build
	mv libs/armeabi/libexploit.so ../../../../data/exploits/CVE-2013-6282.so

push: build
	adb push libs/armeabi/debugexploit /data/local/tmp/exploit

run: push
	adb shell 'chmod 777 /data/local/tmp/exploit'
	adb shell '/data/local/tmp/exploit'

clean:
	rm -rf libs
	rm -rf obj

